﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace iLangl.Model
{
	public class LanguagePair : ExtendedInfo
	{
		public LanguagePair()
		{
			SourceLanguage = new Language();
			TargetLanguage = new Language();
		}
		public Language SourceLanguage { get; set; }
		public Language TargetLanguage { get; set; }

		public bool IsEqual(LanguagePair target)
		{
			if
			(
				(String.Compare(target.SourceLanguage.LanguageId, this.SourceLanguage.LanguageId, true) == 0)
				&&
				(String.Compare(target.TargetLanguage.LanguageId, this.TargetLanguage.LanguageId, true) == 0)
			)
				return true;

			return false;

		}
	}
}
